package com.hgq.jssjyyxt.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Bookings)实体类
 *
 * @author makejava
 * @since 2024-04-11 13:53:34
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Bookings implements Serializable {
    private static final long serialVersionUID = 663794246121612217L;
    /**
     * 预约表id
     */
    @TableId(type = IdType.AUTO)
    private Integer bookingId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 课程id
     */
    private Integer courseId;
    /**
     * 1已确认、2待确认、3已取消4、已拒绝
     */
    private Integer status;
    /**
     * 预约时间
     */
    private Date bookingTime;
    /**
     * 教练ID
     */
    private Integer coachId;
    @TableField(exist = false)
    private Integer trainerId;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String trainerName;
    @TableField(exist = false)
    private String title;
    /**
     * 开始时间
     */
    @TableField(exist = false)
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField(exist = false)
    private Date endTime;

}

